package com.platform.entity;


import java.io.Serializable;
import java.math.BigDecimal;


/**
 * 实体
 * 表名 nideshop_coupon
 *
 * @author lipengjun
 * @email 939961241@qq.com
 * @date 2017-08-19 12:53:26
 */
public class CouponEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    //主键
    private Integer id;
    //优惠券名称
    private String name;
    //金额
    private BigDecimal typeMoney;
    //发放方式 0：按订单发放 1：按用户发放 2:商品转发送券 3：按商品发放
    // 4:新用户注册  5：线下发放 6评价好评红包（固定或随机红包）
    private Integer sendType;
    //最小金额
    private BigDecimal minAmount;
    //最大金额
    private BigDecimal maxAmount;
    //使用开始时间
    private String useStartDate;
    //使用结束时间
    private String useEndDate;
    //优惠券领取开始时间
    private String activityStartDate;
    //优惠券领取结束时间
    private String activityEndDate;
    //最小商品金额
    private BigDecimal minGoodsAmount;

    private Integer couponTypeId;//优惠券类型  1 满减  2 折扣

    private Integer validityDays;//优惠券有效期天数
    private Integer validityType;// 1:指定天数 2:指定日期
    private Integer isShow;//0:显示 1:不显示
    private BigDecimal discount;//折扣


    public BigDecimal getDiscount() {
        return discount;
    }

    public void setDiscount(BigDecimal discount) {
        this.discount = discount;
    }

    public Integer getIsShow() {
        return isShow;
    }

    public void setIsShow(Integer isShow) {
        this.isShow = isShow;
    }

    public Integer getCouponTypeId() {
        return couponTypeId;
    }

    public void setCouponTypeId(Integer couponTypeId) {
        this.couponTypeId = couponTypeId;
    }

    /**
     * 设置：主键
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取：主键
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置：优惠券名称
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取：优惠券名称
     */
    public String getName() {
        return name;
    }

    /**
     * 设置：金额
     */
    public void setTypeMoney(BigDecimal typeMoney) {
        this.typeMoney = typeMoney;
    }

    /**
     * 获取：金额
     */
    public BigDecimal getTypeMoney() {
        return typeMoney;
    }

    /**
     * 设置：发放方式
     */
    public void setSendType(Integer sendType) {
        this.sendType = sendType;
    }


    /**
     * 获取：发放方式
     */
    public Integer getSendType() {
        return sendType;
    }

    /**
     * 设置：最小金额
     */
    public void setMinAmount(BigDecimal minAmount) {
        this.minAmount = minAmount;
    }

    /**
     * 获取：最小金额
     */
    public BigDecimal getMinAmount() {
        return minAmount;
    }

    /**
     * 设置：最大金额
     */
    public void setMaxAmount(BigDecimal maxAmount) {
        this.maxAmount = maxAmount;
    }

    /**
     * 获取：最大金额
     */
    public BigDecimal getMaxAmount() {
        return maxAmount;
    }

    /**
     * 设置：使用开始时间
     */
    public void setUseStartDate(String useStartDate) {
        this.useStartDate = useStartDate;
    }

    /**
     * 获取：使用开始时间
     */
    public String getUseStartDate() {
        return useStartDate;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getUseEndDate() {
        return useEndDate;
    }

    public void setUseEndDate(String useEndDate) {
        this.useEndDate = useEndDate;
    }

    /**
     * 设置：最小商品金额
     */
    public void setMinGoodsAmount(BigDecimal minGoodsAmount) {
        this.minGoodsAmount = minGoodsAmount;
    }

    /**
     * 获取：最小商品金额
     */
    public BigDecimal getMinGoodsAmount() {
        return minGoodsAmount;
    }

    public Integer getValidityDays() {
        return validityDays;
    }

    public void setValidityDays(Integer validityDays) {
        this.validityDays = validityDays;
    }

    public Integer getValidityType() {
        return validityType;
    }

    public void setValidityType(Integer validityType) {
        this.validityType = validityType;
    }

    public String getActivityStartDate() {
        return activityStartDate;
    }

    public void setActivityStartDate(String activityStartDate) {
        this.activityStartDate = activityStartDate;
    }

    public String getActivityEndDate() {
        return activityEndDate;
    }

    public void setActivityEndDate(String activityEndDate) {
        this.activityEndDate = activityEndDate;
    }
}
